<template>

  <a-menu theme="dark" mode="inline" :default-selected-keys="defaulted">
    <a-menu-item key="1">
      <a-icon type="user" />
      <a href="/home"><span style="color: red">用户管理</span></a>
    </a-menu-item>
    <a-menu-item key="2">
      <a-icon type="video-camera" />
      <router-link to="/showwork"><span>工单管理</span></router-link>
    </a-menu-item>
    <a-menu-item key="3">
      <a-icon type="upload" />
      <router-link to="/mywork"><span>我申请的工单</span></router-link>
    </a-menu-item>

    <a-menu-item key="4">
      <a-icon type="upload" />
      <router-link to="/task"><span>我审批的工单</span></router-link>
    </a-menu-item>

    <a-menu-item key="5">
      <a-icon type="upload" />
      <router-link to="/chatroom"><span>聊天</span></router-link>
    </a-menu-item>

    <a-menu-item key="6">
      <a-icon type="upload" />
      <router-link to="/ranking"><span>请假排行榜</span></router-link>
    </a-menu-item>
    
  </a-menu>
</template>


 
<script>
import md5 from "js-md5";
import { get_user, delete_user } from "./axios_http/api";

export default {
  data() {
    return {
      msg: "这是一个变量",
      defaulted: [this.menu_number + ""],
    };
  },
  // 接受参数
  props: ["menu_number"],

  //注册组件标签
  components: {},
  methods:{
    
  },
  mounted: function () {
    var ed2020 = "2020";

    var sign = md5("price=500&goodid=3,1" + ed2020);

    console.log(sign);
  },
  created() {
    
  },
};
</script>
 
<style scoped>
#components-layout-demo-custom-trigger .trigger {
  font-size: 18px;
  line-height: 64px;
  padding: 0 24px;
  cursor: pointer;
  transition: color 0.3s;
}

#components-layout-demo-custom-trigger .trigger:hover {
  color: #1890ff;
}

#components-layout-demo-custom-trigger .logo {
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  margin: 16px;
}
</style>